<?php
/**
 * Created by PhpStorm.
 * User: 刘抱
 * Date: 2018/11/8
 * Time: 10:30
 */

namespace Home\Controller;


class QuestionNaireController extends CommunalController
{
    public function index()
    {
        $uid = $_SESSION['dms_uid'];
        $answerName = urlencode($_SESSION['dms_username']);
        $user = $this->get_user($uid);
        $job = !empty($user['position_descr']) ? urlencode($user['position_descr']) : urlencode('暂无职位');
        $joinTime = $user['add_date'];
        $url = "http://115.159.199.104:85/QA/Index?uid=$uid&answername=$answerName&JOB=$job&JOINTIME=$joinTime";
        return redirect($url);exit;
    }


}